package com.pearl.generator.pojo.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author TangDan
 * @version 1.0
 * @since 2022/8/8
 */
@Data
public class ControllerConfigRequest {

    @ApiModelProperty("ID")
    private Long id;

    @ApiModelProperty("名称")
    @NotBlank(message = "名称不能为空")
    private String name;

    @ApiModelProperty("统一响应类")
    @NotBlank(message = "统一响应类不能为空")
    private String resultClass;

    @ApiModelProperty("设置父类，com.baomidou.global.BaseController")
    private String superClass;

    @ApiModelProperty("开启驼峰转连字符，默认值:false")
    private Integer enableHyphenStyle;

    @ApiModelProperty("开启生成@RestController 控制器，默认值:false")
    private Integer enableRestStyle;

    @ApiModelProperty("转换文件名称")
    private String convertFileName;

    @ApiModelProperty("格式化文件名称")
    private String formatFileName;
}
